package me.idashu.attg.service;

import java.util.List;
import java.util.Map;

import me.idashu.attg.domain.CirlEntity;
import me.idashu.attg.persistence.CirlMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CirlService {
    @Autowired
    private CirlMapper cirlMapper;
    
    public List<CirlEntity> getAllCirlEntity(Map<String, Object> map){
    	List<CirlEntity> listcirl = cirlMapper.getAllCirlEntity(map);
    	return listcirl;
    }
    
    public int getCountCirlEntity(CirlEntity cirlEntity){
    	int count = cirlMapper.getCountCirlEntity(cirlEntity);
    	return count;
    }
    
    public void deleteCirlEntity(int cirlId){
    	cirlMapper.deleteCirlEntity(cirlId);
    }
    
    public void insertCirlEntity(CirlEntity cirlEntity){
    	cirlMapper.insertCirlEntity(cirlEntity);
    }
    
    public CirlEntity getOneCirlEntity(int cirlId){
    	CirlEntity cirlEntity = cirlMapper.getOneCirlEntity(cirlId);
    	return cirlEntity;
    }
    
    public void updateCirlEntity(CirlEntity cirlEntity){
    	cirlMapper.updateCirlEntity(cirlEntity);
    }
    
    public CirlEntity getGongGaoCirl(int memberId){
    	CirlEntity cirlEntity = cirlMapper.getGongGaoCirl(memberId);
    	return cirlEntity;
    }
    
    public void deleteGongGao(){
    	cirlMapper.deleteGongGao();
    }
    
    public List<CirlEntity> getCirlBySeq(){
    	List<CirlEntity> listCirl = cirlMapper.getCirlBySeq();
    	return listCirl;
    }
}  
